
package org.springxrsk.modules.schedule.service.impl;

import org.springxrsk.modules.schedule.pojo.entity.QyScheduleEntity;
import org.springxrsk.modules.schedule.pojo.vo.QyScheduleVO;
import org.springxrsk.modules.schedule.excel.QyScheduleExcel;
import org.springxrsk.modules.schedule.mapper.QyScheduleMapper;
import org.springxrsk.modules.schedule.service.IQyScheduleService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springxrsk.core.mp.base.BaseServiceImpl;
import java.util.List;

/**
 * 课表 服务实现类
 *
 *  @author
 * @since 2024-06-15
 */
@Service
public class QyScheduleServiceImpl extends BaseServiceImpl<QyScheduleMapper, QyScheduleEntity> implements IQyScheduleService {

	@Override
	public IPage<QyScheduleVO> selectQySchedulePage(IPage<QyScheduleVO> page, QyScheduleVO qySchedule) {
		return page.setRecords(baseMapper.selectQySchedulePage(page, qySchedule));
	}


	@Override
	public List<QyScheduleExcel> exportQySchedule(Wrapper<QyScheduleEntity> queryWrapper) {
		List<QyScheduleExcel> qyScheduleList = baseMapper.exportQySchedule(queryWrapper);
		//qyScheduleList.forEach(qySchedule -> {
		//	qySchedule.setTypeName(DictCache.getValue(DictEnum.YES_NO, QySchedule.getType()));
		//});
		return qyScheduleList;
	}

}
